import java.io.FileWriter;
import java.io.IOException;

public class CharStreamDemo01 {
    public static void main(String[] args) throws IOException {
        FileWriter fw=new FileWriter("ChaStream\\abc.txt");
//       fw.write(97);
//       fw.write(98);
//       fw.write(99);
//       char[] chars={97,98,99,100};
//       fw.write(chars,0,2);
        String line="迪丽热巴";
        fw.write(line,0,4);
        fw.flush();
        fw.write("最美");
        fw.close();
//        fw.write("hahaha");
    }
}
